From 594e6fd413d646521cc29b38bc89f897b4570977 Mon Sep 17 00:00:00 2001 From: Mukesh Rathor Date: Mon, 2 Jun 2014 10:31:49 +0200 Subject: [PATCH] pvh dom0: allow get_pg_owner for translated domains if pvh When creating a PV guest, toolstack on pvh dom0 will do_mmuext_op to pin guest tables. do_mmuext_op calls get_pg_owner, which must allow foreign mappings for pvh. Signed-off-by: Mukesh Rathor --- xen/arch/x86/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index dd8d98c07a..2543916c68 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -2811,7 +2811,7 @@ static struct domain *get_pg_owner(domid_t domid) goto out; } - if ( unlikely(paging_mode_translate(curr)) ) + if ( !is_pvh_domain(curr) && unlikely(paging_mode_translate(curr)) ) { MEM_LOG("Cannot mix foreign mappings with translated domains"); goto out; -- 2.30.2